#ifndef __OS_IF_ETHER_H
#define __OS_IF_ETHER_H

#include<lib/type.h>

#define ETH_ALEN 6         // mac address length
#define ETH_HLEN 14        // etharp frame header leght
#define ETH_ZLEN 60        // etharp frame min length ETH_ZLEN+ETH_FCS_LEN
#define ETH_DATA_LEN 1500  // etharp max load length
#define ETH_FRAME_LEN 1024 // etharp frame max length
#define EHT_FCS_LEN 4      // etharp frame check value length


struct eth_header
{
    uint8_t h_dest[ETH_ALEN];   //destinary mac address
    uint8_t h_source[ETH_ALEN]; //source mac address
    uint8_t h_proto; //protocol type
}__attribute__((packed));

typedef struct eth_header eth_header_t;


#endif